﻿@model Sahit.iSoilHotel.Portal.ServiceProxy.Tavern.Models.Record.ReserveModel
@{
    ViewBag.Title = "Reserve";
}
<h2>
    Reserve</h2>
@using (Html.BeginForm())
{
    <div>
        <fieldset class="form">
            <legend></legend>
                <div class="form-field">
                    @Html.LabelFor(m => m.MainCustomer.Name)
                    @Html.EditorFor(m => m.MainCustomer.Name, new { Class = "text-box single-line" })
                    @Html.ValidationMessageFor(m => m.MainCustomer.Name)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.MainCustomer.IDCard)
                    @Html.EditorFor(m => m.MainCustomer.IDCard, new { Class = "text-box single-line" })
                    @Html.ValidationMessageFor(m => m.MainCustomer.IDCard)
                </div>
                 <div class="form-field">
                    @Html.LabelFor(m => m.MainCustomer.Sex)
                    @Html.DropDownListFor(m=>m.MainCustomer.Sex,Model.SexOptions)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.MainCustomer.Mobile)
                    @Html.EditorFor(m => m.MainCustomer.Mobile, new { Class = "text-box single-line" })
                    @Html.ValidationMessageFor(m => m.MainCustomer.Mobile)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.StartDate)
                    @Html.EditorFor(m => m.StartDate)
                    @Html.ValidationMessageFor(m => m.StartDate)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.EndDate)
                    @Html.EditorFor(m => m.EndDate)
                    @Html.ValidationMessageFor(m => m.EndDate)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.Room.Number)
                    @Html.EditorFor(m => m.Room.Number)
                    @Html.ValidationMessageFor(m => m.Room.Number)
                </div>
                <div class="form-field">
                    @Html.LabelFor(m => m.Room.RoomType.Name)
                    @Html.DropDownListFor(m => m.Room.RoomType.Name, Model.RoomTypeOptions)
                    @Html.ValidationMessageFor(m => m.Room.RoomType.Name)
                </div>
            <input type="submit" value="Submit" title="Submit" />
            @Html.HiddenFor(m => m.Room.ID);
        </fieldset>
    </div>
}